// Demonstrate boolean values.
class BoolDemo {
    public static void main (String args[]) {
        boolean b;

        b = false;
        System.out.println("b is " + b);
        b = true;
        System.out.println("b is " + b);

        // A Boolean value can contol the if statement
        if(b) System.out.println("This is executed.");

        b = false;
        if(b) System.out.println("This is not executed.");

        // outcome of a relational operator is a boolean variable
        System.out.println("10 > 9 is " + (10 > 9));
    }
}


